;;-*-lisp-*-

(def-enum "Side_Enum" (("BUY"   :alias "B")
                       ("SELL"  :alias "S")
                       ("SHORT" :alias "Z")
                       ("INVALID_")))


;; 
;; demo of how to inject user-provided code into the class
;; declaration
;;
(defvar user-code-inclass-public
  "char to_char() const
  {
    switch (value())
    {
      case raw::BUY:   return 'B';
      case raw::SELL:  return 'S';
      case raw::SHORT: return 'Z';
      case raw::INVALID_: return '!';
    }
    return '?';
  }
"
)


  
